import {RequestUtil} from '@/utils'

export class UnionEggHttp {
    static PREFIX = "/manager/union/egg"


    //     查询兑换规格
    static getProductPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/product/pageList`, params)

    // 新增兑换规格
    static addProduct = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/product/add`, data)

    // 编辑兑换规格
    static updateProduct = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/product/update/${id}`, data)

    // 删除兑换规格
    static delProduct = (data: (string | number)[]) => RequestUtil.delAjax(`${this.PREFIX}/product/delete`, data)



    //     查询订单列表
    static getOrderPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/order/pageList`, params)


    //     查询订单列表
    static replenishExpress = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/order/replenishExpress`, data)



}
